3.415 \(\int \frac{A+B x}{\sqrt{a+b x}} \, dx\)

Optimal. Leaf size=40 \[ \frac{2 \sqrt{a+b x} (A b-a B)}{b^2}+\frac{2 B (a+b x)^{3/2}}{3 b^2} \]

[Out]

(2*(A*b - a*B)*Sqrt[a + b*x])/b^2 + (2*B*(a + b*x)^(3/2))/(3*b^2)

_______________________________________________________________________________________

Rubi [A]  time = 0.043014, antiderivative size = 40, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067 \[ \frac{2 \sqrt{a+b x} (A b-a B)}{b^2}+\frac{2 B (a+b x)^{3/2}}{3 b^2} \]

Antiderivative was successfully verified.

[In]  Int[(A + B*x)/Sqrt[a + b*x],x]

[Out]

(2*(A*b - a*B)*Sqrt[a + b*x])/b^2 + (2*B*(a + b*x)^(3/2))/(3*b^2)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 7.38789, size = 36, normalized size = 0.9 \[ \frac{2 B \left (a + b x\right )^{\frac{3}{2}}}{3 b^{2}} + \frac{2 \sqrt{a + b x} \left (A b - B a\right )}{b^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)/(b*x+a)**(1/2),x)

[Out]

2*B*(a + b*x)**(3/2)/(3*b**2) + 2*sqrt(a + b*x)*(A*b - B*a)/b**2

_______________________________________________________________________________________

Mathematica [A]  time = 0.0235354, size = 29, normalized size = 0.72 \[ \frac{2 \sqrt{a+b x} (-2 a B+3 A b+b B x)}{3 b^2} \]

Antiderivative was successfully verified.

[In]  Integrate[(A + B*x)/Sqrt[a + b*x],x]

[Out]

(2*Sqrt[a + b*x]*(3*A*b - 2*a*B + b*B*x))/(3*b^2)

_______________________________________________________________________________________

Maple [A]  time = 0.006, size = 26, normalized size = 0.7 \[{\frac{2\,bBx+6\,Ab-4\,Ba}{3\,{b}^{2}}\sqrt{bx+a}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)/(b*x+a)^(1/2),x)

[Out]

2/3*(b*x+a)^(1/2)*(B*b*x+3*A*b-2*B*a)/b^2

_______________________________________________________________________________________

Maxima [A]  time = 1.34971, size = 53, normalized size = 1.32 \[ \frac{2 \,{\left (3 \, \sqrt{b x + a} A + \frac{{\left ({\left (b x + a\right )}^{\frac{3}{2}} - 3 \, \sqrt{b x + a} a\right )} B}{b}\right )}}{3 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/sqrt(b*x + a),x, algorithm="maxima")

[Out]

2/3*(3*sqrt(b*x + a)*A + ((b*x + a)^(3/2) - 3*sqrt(b*x + a)*a)*B/b)/b

_______________________________________________________________________________________

Fricas [A]  time = 0.209875, size = 34, normalized size = 0.85 \[ \frac{2 \,{\left (B b x - 2 \, B a + 3 \, A b\right )} \sqrt{b x + a}}{3 \, b^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/sqrt(b*x + a),x, algorithm="fricas")

[Out]

2/3*(B*b*x - 2*B*a + 3*A*b)*sqrt(b*x + a)/b^2

_______________________________________________________________________________________

Sympy [A]  time = 4.54192, size = 121, normalized size = 3.02 \[ \begin{cases} - \frac{\frac{2 A a}{\sqrt{a + b x}} + 2 A \left (- \frac{a}{\sqrt{a + b x}} - \sqrt{a + b x}\right ) + \frac{2 B a \left (- \frac{a}{\sqrt{a + b x}} - \sqrt{a + b x}\right )}{b} + \frac{2 B \left (\frac{a^{2}}{\sqrt{a + b x}} + 2 a \sqrt{a + b x} - \frac{\left (a + b x\right )^{\frac{3}{2}}}{3}\right )}{b}}{b} & \text{for}\: b \neq 0 \\\frac{A x + \frac{B x^{2}}{2}}{\sqrt{a}} & \text{otherwise} \end{cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)/(b*x+a)**(1/2),x)

[Out]

Piecewise((-(2*A*a/sqrt(a + b*x) + 2*A*(-a/sqrt(a + b*x) - sqrt(a + b*x)) + 2*B*
a*(-a/sqrt(a + b*x) - sqrt(a + b*x))/b + 2*B*(a**2/sqrt(a + b*x) + 2*a*sqrt(a +
b*x) - (a + b*x)**(3/2)/3)/b)/b, Ne(b, 0)), ((A*x + B*x**2/2)/sqrt(a), True))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.219, size = 53, normalized size = 1.32 \[ \frac{2 \,{\left (3 \, \sqrt{b x + a} A + \frac{{\left ({\left (b x + a\right )}^{\frac{3}{2}} - 3 \, \sqrt{b x + a} a\right )} B}{b}\right )}}{3 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/sqrt(b*x + a),x, algorithm="giac")

[Out]

2/3*(3*sqrt(b*x + a)*A + ((b*x + a)^(3/2) - 3*sqrt(b*x + a)*a)*B/b)/b